/**
 * Created by wqz806687102 on 2016/1/11.
 */
'use strict';

angular.module('QC').controller('QCNormListController', ['$scope', 'PublicModule', 'PublicEnum', 'PublicFunction', '$location', 'Authentication','QCEnum',
    function ($scope, PublicModule, PublicEnum, PublicFunction, $location, Authentication,QCEnum) {
        PublicModule.initModule($scope, 'QCNorm');
        $scope.Module.QCNorm.LoadMode = PublicEnum.LoadMode.CacheAndPaging;
        $scope.Module.QCNorm.PageSize = 15;
        $scope.Module.QCNorm.Populate = {path: 'ExtendEnum', select: 'Code Name'};

        $scope.TypeEnum=QCEnum.QCNormType;

        $scope.btnAdd = function () {
            $location.url('/index/QCNorm/Edit');
        };
        $scope.rowDblClick = function () {
            $scope.$apply(function () {
                $location.url('/index/QCNorm/Edit/' + $scope.Module.QCNorm.FocusedRecord._id);
            });
        };
        $scope.btnDelete = function () {
            $scope.Module.QCNorm.deleteSelecteds();
        };
    }
]);
